﻿<?xml version="1.0" encoding="utf-8" ?>

<RuntimeConfiguration>

  <!--<AssemblyLoadPath Path="C:\Projects\Akbank.InternetBanking.2010\Main\Source\Presentation\WebApplication.UI\Bin"  />-->
  <!--<AssemblyLoadPath Url="http://localhost:22000/AssemblyService.asmx" />-->

  <Type Name="string" Impl="System.String, mscorlib" />
  <Type Name="datetime" Impl="System.DateTime, mscorlib" />
  <Type Name="int" Impl="System.Int32, mscorlib" />
  <Type Name="TimeSpan" Impl="System.TimeSpan, mscorlib" />
  <Type Name="XmlDocument" Impl="System.Xml.XmlDocument, System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <Type Name="Hashtable" Impl="System.Collections.Hashtable, mscorlib" />

  <Type Name="XmlExtendedDocument" Impl="OrganizationName.Xml.XmlExtendedDocument, OrganizationName" />
  <Type Name="XmlExtendedDocumentFilterExtension" Impl="OrganizationName.Xml.Extensions.XmlExtendedDocumentFilterExtension, OrganizationName" />
  <Type Name="IApplicationSettings" Impl="OrganizationName.Configuration.IApplicationSettings, OrganizationName" />
  <Type Name="AppConfigSettings" Impl="OrganizationName.Configuration.ApplicationConfigurationFileApplicationSettings, OrganizationName" />
  <Type Name="XmlFileDataProvider" Impl="VeriBranch.WebApplication.StaticData.DataProviders.XmlFileDataProvider, VeriBranch.WebApplication.StaticData" />

  <!-- Life Time Contracts -->
  <Type Name="Container" Impl="OrganizationName.Factory.LifeTimeContracts.ContainerLifeTimeContract, OrganizationName" />
  <Type Name="Interval" Impl="OrganizationName.Factory.LifeTimeContracts.IntervalLifeTimeContract, OrganizationName" />
  <Type Name="WeakReference" Impl="OrganizationName.Factory.LifeTimeContracts.WeakReferenceLifeTimeContract, OrganizationName" />
  <Type Name="Thread" Impl="OrganizationName.Factory.LifeTimeContracts.ThreadLifeTimeContract, OrganizationName" />
  <Type Name="HttpSession" Impl="OrganizationName.Factory.LifeTimeContracts.HttpSessionLifeTimeContract, OrganizationName" />
  <Type Name="HttpContext" Impl="OrganizationName.Factory.LifeTimeContracts.HttpContextLifeTimeContract, OrganizationName" />

  <Invoke Name="SettingsFetch" Method="Fetch">
    <Source Impl="XmlFileDataProvider">
      <Attribute Name="XmlFileName">
        <Literal Data='@"C:\Private\Coding\OrganizationName\OrganizationName.Lab\settings.web.xml"' />
      </Attribute>
    </Source>
  </Invoke>

  <Type Name="SettingsPresenterType" Impl="Akbank.InternetBanking.WebApplication.StaticData.Presenters.Settings, Akbank.InternetBanking.WebApplication.StaticData" />
  <Instance Name="SettingsPresenter" Impl="SettingsPresenterType">
    <Attribute Name="Data" Reference="SettingsFetch" />
  </Instance>

  <Instance Name="AppSettings" Base="IApplicationSettings" Impl="AppConfigSettings" />

  <Invoke Name="XML_DOCUMENT_FILTER" Method="[]">
    <Source Reference="AppSettings" />
    <Parameter Impl="string">
      <Literal Data='"XmlExtendedDocumentFilterExtension.Switches"' />
    </Parameter>
  </Invoke>

  <Instance Name="XmlDocument" Base="XmlDocument" Impl="XmlExtendedDocument">
    <LifeTimeContract Impl="Interval">
      <Parameter Impl="TimeSpan">
        <Literal Data="new System.TimeSpan(0,0,0,0,250)" />
      </Parameter>
    </LifeTimeContract>
    <Attribute Name="Extensions" Impl="Hashtable">
      <Element Impl="XmlExtendedDocumentFilterExtension">
        <Key Impl="string">
          <Literal Data='"Filter"' />
        </Key>
        <Parameter Impl="string" Reference="XML_DOCUMENT_FILTER" />
        <!--<Parameter>

        </Parameter>-->
      </Element>
    </Attribute>
  </Instance>

</RuntimeConfiguration>